import Layout from '@/layout'

// 大屏
const nestedRouter = {
  path: '/screen',
  component: Layout,
  redirect: '/screen',
  name: 'Screen',
  meta: {
    title: 'demo',
    icon: 'tree-table'
  },
  children: [
    {
      path: 'process-10',
      component: () => import('@/views/screen/index'),
      name: 'DES',
      meta: { title: 'DES线' },
      redirect: '@/views/screen/index',
      children: [
        {
          path: 'process-10-0',
          component: () => import('@/views/screen/index'),
          name: 'DES-All',
          meta: { title: 'DES线全线' },
          hidden: true
        },
        {
          path: 'process-10-1',
          component: () => import('@/views/screen/index'),
          name: 'DES-1',
          meta: { title: 'A线' }
        },
        {
          path: 'process-10-2',
          component: () => import('@/views/screen/index'),
          name: 'DES-2',
          meta: { title: 'B线' }
        }
      ]
    },
    {
      path: 'OUTTER',
      name: 'OUTTER',
      component: () => import('@/views/screen/index'),
      meta: { title: '外层' },
      children: []
    },
    {
      path: 'INNER',
      component: () => import('@/views/screen/index'),
      name: 'INNER',
      meta: { title: '内层' },
      redirect: '@/views/screen/index',
      children: [
        {
          path: 'INNER-All',
          component: () => import('@/views/screen/index'),
          name: 'INNER-All',
          meta: { title: '内层全线' },
          hidden: true
        },
        {
          path: 'INNER-1',
          component: () => import('@/views/screen/index'),
          name: 'INNER-1',
          meta: { title: 'A线' }
        },
        {
          path: 'INNER-2',
          component: () => import('@/views/screen/index'),
          name: 'INNER-2',
          meta: { title: 'B线' }
        }
      ]
    }
  ]
}

export default nestedRouter
